//
//  Man.m
//  07_Code ARC
//
//  Created by dllo on 16/7/12.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "Man.h"
// self. 在= 左边时 其他情况用 "_"



@implementation Man
- (instancetype)init {
    self = [super init];
    if (self) {
        _object = [NSObject new]; // self.object = [NSObject new]; "_"相当于一个指针直接指向 "self" 走setter方法   赋值 也就是在等号左边 用self.
    }

    return self;
}





- (void)setObject:(NSObject *)object {
    _object = object;
}

- (void)setString:(NSString *)string {
    _string = [string copy];
}

- (void)setNumber:(NSInteger)number {
    _number = number;
}

- (void)setDelegate:(id<NSObject>)delegate {
    _delegate = delegate;
}

- (void)dealloc {
// 不能写[supper dealloc];
}

@end
